getTxns

Puts all Txn objects matching the given filter into the provided collection. Txn objects represent one side of a double-entry transaction in a cleaner way than the current asymmetric ParentTxn ->> SplitTxn relationship. With Txn objects, a multi-split transaction is treated as multiple Txn object pairs, where each Txn object has one account/category and one amount which is the reverse amount of its matching Txn. txn1A(accountA, amt1) -> txn1B(account1, -amt1) txn2A(accountA, amt2) -> txn2B(account2, -amt2) txn3A(accountA, amt2) -> txn3B(account3, -amt3) txn4(accountA, amt2) -> fTxn4(account4, -amt4)

Iterating over Txn objects should be an easier way to generate reports or budgets, because you shouldn't need to worry about whether a Txn is a SplitTxn or a ParentTxn, because there is only other one "other side" to a Txn.

Since

build 4061 (2022.3)